package com.ncepu_ideal.maven_testng.config.enums;


/**
 * 统一返回结果状态信息类
 * @author chuck
 */
public enum ResultCodeEnum {

    SUCCESS(2000,"成功"),
    FAIL(2001, "失败"),
    PARAM_ERROR( 2002, "参数不正确"),
    SERVICE_ERROR(2003, "服务异常"),
    DATA_ERROR(2004, "数据异常"),
    DATA_UPDATE_ERROR(2005, "数据版本异常"),
    LOGIN_AUTH(2008, "未登陆"),
    FREIGHT_REPEAT(2009,"运费地区重复"),
    ;

    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    private ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
